<?php 
/* SVN FILE: $Id: crumbs.php 59 2007-10-09 01:52:25Z joe.vasquez $ */
/**
 * crumbs helper
 * @filesource
 * @author			Joe Vasquez <joe.vasquez@gmail.com>
 * @copyright		Copyright (c) 2007, Joe Vasquez
 * @package			redlettr
 * @subpackage		helpers
 * @since			since
 * @version			0.1A  $Rev: 59 $
 * @lastmodified	$Date: 2007-10-09 01:52:25 +0000 (Tue, 09 Oct 2007) $
 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
 */
?>
<?php 
class CrumbsHelper extends Helper
{
	var $helpers = array('Html');
	
	function generate($crumbsList,$separator = ' &gt; ')
	{
		$tmp = array();
		foreach($crumbsList as $crumb)
		{
			$tmp[] = $this->Html->link($crumb[0],$crumb[1]);
		}
		return $this->output(implode($separator,$tmp));
	}	
}
?>